/* 整体布局 [start] */
html,
body {
    min-height: 100vh;
}

#main {
    min-height: 100vh;
    background-color: #eef4f6;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.1);
}
/* 整体布局 [end] */

/* 头部区域 [start] */
#main .content .head {
    height: 69px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e5e5;
}

/* 医生姓名、患者姓名 [start] */
#main .content .head .doctor-info,
#main .content .head .patient-info {
    float: left;
    /* width: 33%; */
    height: 100%;
}

#main .content .head .doctor-info .image,
#main .content .head .patient-info .image {
    float: left;
}

#main .content .head .doctor-info .image .text,
#main .content .head .patient-info .image .text {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

#main .content .head .doctor-info .image img,
#main .content .head .patient-info .image img {
    height: 30px;
    margin-top: 5px;
}

#main .content .head .doctor-info .id,
#main .content .head .patient-info .id {
    float: left;
    margin-left: 5px;
}

#main .content .head .doctor-info .id .text,
#main .content .head .patient-info .id .text {
    font-size: 14px;
    text-align: center;
    font-weight: 700;
}

#main .content .head .doctor-info .id .name,
#main .content .head .patient-info .id .name {
    margin-top: 5px;
    font-size: 14px;
    text-align: center;
    line-height: 30px;
}
/* 医生姓名、患者姓名 [end] */

/* 患者姓名 [start] */
#main .content .head .patient-info {
    float: left;
    /* width: 33%; */
    height: 100%;
}
/* 患者姓名 [end] */

/* 头部区域的操作按钮组 [start] */
#main .content .head .addButtonGroup {
    /* position: relative;
    float: left; */
    width: 33%;
    height: 100%;
}

#main .content .addButtonGroup button {
    box-sizing: border-box;
    position: relative;
    right: 0;
    display: block;
    height: 27px;
    padding: 4px 8px;
    padding-right: 20px;
    border-radius: 4px;
    border-width: 0;
    background-color: #a4dcee;
    font-size: 14px;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    outline: none;
    width: 50%;
    float: right;
}

#main .content .addButtonGroup button:hover {
    background-color: #9e9eff;
}

#main .content .addButtonGroup button svg {
    position: absolute;
    top: 6px;
    right: 3px;
    width: 15px;
    height: 15px;
}

#main .content .addButtonGroup button svg path {
    fill: #4874cb;
}

#main .content .addButtonGroup #select-patient {
    top: 0;
}

#main .content .addButtonGroup #add-patient {
    top: 32px;
}
/* 头部区域的操作按钮组 [end] */

/* 头部区域 [start] */

/* 信息录入区域（一级按钮） [start] */
#main .content .info {
    border-bottom: 1px solid #e8e5e5;
}

#main .content .info h2 {
    margin: 15px 0;
    font-size: 18px;
    text-align: center;
}

#main .content .info .btn-group .primary-btn {
    /* float: left; */
    /* width: 33%; */
    height: 27px;
    margin-bottom: 16px;
    text-align: center;
}

#main .content .info .btn-group .primary-btn button {
    width: 100%;
    height: 27px;
    padding: 0;
    border-width: 0;
    border-radius: 4px;
    background-color: #fce6d5;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.3);
    font-size: 12px;
    text-align: center;
    line-height: 27px;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    /* float: right; */
}

#main .content .info .btn-group button:hover {
    background-color: #e1a97e;
}
/* 信息录入区域（一级按钮） [end] */

/* 模态框组件 [start] */
#modal-group {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#modal-group .modal {
    box-sizing: border-box;
    position: fixed;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-width: 400px;
    padding-bottom: 73px;
    border-radius: 10px;
    background-color: #eef4f6;
    box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.3);
}

#modal-group .modal.transition {
    transition: top .3s;
}

#modal-group .modal h2 {
    margin: 0;
    padding: 15px 0;
    font-size: 18px;
    text-align: center;
}

#modal-group .modal .content {
    box-sizing: border-box;
    overflow: auto;
    max-height: calc(100vh - 127px);
    padding: 15px;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.2) inset;
}

#modal-group .modal .content .input-group {
    margin-bottom: 18px;
}

#modal-group .modal .content .input-group label {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin-bottom: 4px;
    padding-left: 8px;
}

#modal-group .modal .content .input-group input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 28px;
    margin-bottom: 4px;
    padding: 0 8px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 28px;
    outline: none;
}

#modal-group .modal .content .input-group.sbp-dbp .input {
    height: 28px;
    margin-bottom: 4px;
}

#modal-group .modal .content .input-group.sbp-dbp .input input {
    float: left;
    width: 45%;
    margin-bottom: 0;
}

#modal-group .modal .content .input-group.sbp-dbp .input label {
    float: left;
    width: 10%;
    height: 100%;
    margin-bottom: 0;
    padding-left: 0;
    line-height: 28px;
    text-align: center;
}

#modal-group .modal .btn-group {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding-bottom: 20px;
    text-align: center;
}

#modal-group .modal .btn-group button {
    padding: 6px 16px;
    border-width: 0;
    border-radius: 4px;
    background-color: #a4dcee;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    cursor: pointer;
    outline: none;
}

#modal-group .modal .btn-group button:nth-child(n + 2) {
    margin-left: 60px;
}

#modal-group .modal .btn-group button:hover {
    background-color: #9e9eff;
}
/* 模态框组件 [end] */

/* 预览区域 [start] */
#main #previewer {
    padding-bottom: 57px;
}

#main #previewer h2 {
    margin: 15px 0;
    font-size: 18px;
    text-align: center;
}

#main #previewer .item {
    position: relative;
    padding: 15px 50px 15px 0;
    border-bottom: 1px solid #cccccc;
}

#main #previewer .item:first-of-type {
    border-top: 1px solid #cccccc;
}

#main #previewer .item .content label {
    box-sizing: border-box;
    display: block;
    width: 100%;
    /*height: 21px;*/
    margin-bottom: 4px;
    padding-left: 8px;
    font-size: 16px;
}

#main #previewer .item .content input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 28px;
    margin-bottom: 4px;
    padding: 0 8px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 28px;
    outline: none;
}

#main #previewer .item .content .input {
    height: 28px;
    margin-bottom: 4px;
}

#main #previewer .item .content .input label {
    float: left;
    width: 10%;
    height: 100%;
    margin-bottom: 0;
    padding-left: 0;
    line-height: 28px;
    text-align: center;
}

#main #previewer .item .content .input input {
    box-sizing: border-box;
    display: block;
    float: left;
    width: 45%;
    height: 100%;
    padding: 0 8px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 28px;
    outline: none;
}

#main #previewer .item .content input[type="datetime-local"][step="1"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 28px;
    margin-bottom: 0;
    padding: 0 8px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 28px;
    outline: none;
}

#main #previewer .item .delete {
    display: block;
    position: absolute;
    top: 15px;
    right: 0;
    width: 40px;
    height: calc(100% - 30px);
    padding: 0;
    border-width: 0;
    border-radius: 4px;
    background-color: #ff5b5b;
    color: #ffffff;
    text-align: center;
    line-height: calc(100% - 30px);
    cursor: pointer;
    outline: none;
}

#main #previewer .item .delete:hover {
    background-color: #b30000;
}
/* 预览区域 [end] */

/* 底部区域 [start] */
#footer {
    display: flex;
    justify-content: space-around;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 15px 0;
    border-top: 1px solid #ccc;
    background-color: #eef4f6;
}

#footer a {
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #a4dcee;
    font-size: 14px;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.3);
    color: #0000ee;
    text-decoration: none;
    cursor: pointer;
}

#footer a:hover,
#footer a.active {
    background-color: #9e9eff;
}
/* 底部区域 [end] */

/* 适配屏幕尺寸 [start] */
@media screen and (min-width: 401px) {
    #modal-group .modal {
        left: 50%;
        margin-left: -200px;
    }
}

@media screen and (min-width: 576px) {
    #main .content .head {
        height: 100px;
        border-bottom: 1px solid #e8e5e5;
        padding-bottom: 10px;
    }

    #main .content .head .doctor-info .image .text,
    #main .content .head .patient-info .image .text {
        font-size: 18px;
    }

    #main .content .head .doctor-info .image img,
    #main .content .head .patient-info .image img {
        height: 50px;
        margin-top: 5px;
    }

    #main .content .head .doctor-info .id,
    #main .content .head .patient-info .id {
        margin-left: 20px;
    }

    #main .content .head .doctor-info .id .text,
    #main .content .head .patient-info .id .text {
        font-size: 18px;
    }

    #main .content .head .doctor-info .id .name,
    #main .content .head .patient-info .id .name {
        font-size: 16px;
        line-height: 50px;
    }

    #main .content .head .action-btn-group button {
        left: 50%;
        right: auto;
        height: 40px;
        margin-left: -65px;
        padding: 8px 20px;
        padding-right: 38px;
        border-radius: 4px;
        font-size: 18px;
        position: relative;
    }

    #main .content .head .action-btn-group button svg {
        top: 11px;
        right: 10px;
        width: 18px;
        height: 18px;
    }

    #main .content .head .action-btn-group #select-patient {
        top: 0;
    }

    #main .content .head .action-btn-group #add-patient {
        top: 50px;
    }

    #main .content .info h2 {
        margin: 20px 0;
        font-size: 30px;
    }

    #main .content .info .btn-group .primary-btn {
        height: 40px;
        margin-bottom: 20px;
    }

    #main .content .info .btn-group .primary-btn button {
        width: 100%;
        height: 40px;
        font-size: 16px;
        /* float: right; */
    }

    #modal-group .modal {
        padding-bottom: 90px;
    }

    #modal-group .modal .content {
        max-height: calc(100vh - 170px);
        padding: 20px;
    }

    #modal-group .modal h2 {
        padding: 20px 0;
        font-size: 30px;
    }

    #modal-group .modal .btn-group {
        padding-bottom: 30px;
    }

    #modal-group .modal .btn-group button {
        padding: 8px 30px;
        font-size: 18px;
    }

    #modal-group .modal .btn-group button:nth-child(n + 2) {
        margin-left: 70px;
    }

    #modal-group .modal .content .input-group label {
        font-size: 18px;
    }

    #modal-group .modal .content .input-group input {
        height: 34px;
        font-size: 16px;
        line-height: 34px;
    }

    #modal-group .modal .content .input-group.sbp-dbp .input {
        height: 34px;
    }

    #modal-group .modal .content .input-group.sbp-dbp .input label {
        line-height: 34px;
    }

    #main #previewer {
        padding-bottom: 80px;
    }

    #main #previewer h2 {
        margin: 20px 0;
        font-size: 30px;
    }

    #main #previewer .item {
        padding-right: 85px;
    }

    #main #previewer .item .delete {
        width: 70px;
        font-size: 16px;
    }

    #main #previewer .item .content label {
        font-size: 18px;
    }

    #main #previewer .item .content input {
        height: 34px;
        font-size: 16px;
        line-height: 34px;
    }

    #main #previewer .item .content input[type="datetime-local"][step="1"] {
        height: 34px;
        font-size: 16px;
        line-height: 34px;
    }

    #main #previewer .item .content .input {
        height: 34px;
    }

    #main #previewer .item .content .input input {
        font-size: 16px;
        line-height: 34px;
    }

    #main #previewer .item .content .input label {
        font-size: 18px;
        line-height: 34px;
    }

    #footer {
        padding: 20px 0;
    }

    #footer a {
        padding: 8px 20px;
        font-size: 18px;
    }
}

@media screen and (min-width: 768px) {
    #modal-group .modal {
        max-width: 740px;
        margin-left: -370px;
    }

    #modal-group .modal .btn-group button:nth-child(n + 2) {
        margin-left: 200px;
    }

    #modal-group .modal .content .input-group {
        height: 34px;
    }

    #modal-group .modal .content .input-group label {
        float: left;
        width: 250px;
        padding-left: 0;
        line-height: 34px;
    }

    #modal-group .modal .content .input-group input {
        float: left;
        width: 160px;
        margin-left: 20px;
    }

    #modal-group .modal .content .input-group input[type="datetime-local"][step="1"] {
        width: 230px;
    }

    #modal-group .modal .content .input-group.sbp-dbp .input {
        float: left;
        width: 160px;
        margin-left: 20px;
    }

    #modal-group .modal .content .input-group.sbp-dbp .input input {
        width: 45%;
        margin-left: 0;
    }

    #modal-group .modal .content .input-group.sbp-dbp .input label {
        width: 10%;
    }

    #main #previewer .item {
        height: 34px;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-right: 90px;
    }

    #main #previewer .item .content {
        display: flex;
        justify-content: space-between;
        height: 34px;
    }

    #main #previewer .item .content label {
        min-width: 250px;
        max-width: 250px;
        height: 100%;
        padding-left: 0;
        line-height: 34px;
    }

    #main #previewer .item .content input {
        flex: 1;
        height: 100%;
        margin-left: 20px;
        line-height: 34px;
    }

    #main #previewer .item .content input[type="datetime-local"][step="1"] {
        min-width: 210px;
        max-width: 210px;
        height: 100%;
        margin-left: 20px;
        line-height: 34px;
    }

    #main #previewer .item .content .input {
        flex: 1;
        height: 100%;
        margin-left: 20px;
    }

    #main #previewer .item .content .input input {
        margin-left: 0;
    }

    #main #previewer .item .content .input label {
        min-width: 10%;
        max-width: 10%;
    }

    #main #previewer .item .delete {
        top: 10px;
        height: 34px;
        line-height: 34px;
    }
}

@media screen and (min-width: 1001px) {
    #footer {
        left: 50%;
        width: 1000px;
        margin-left: -500px;
    }
}
/* 适配屏幕尺寸 [end] */